/*
 * @Author: GuitarXiaohe && 2205227953@qq.com
 * @Date: 2024-01-17 21:20:32
 * @LastEditors: GuitarXiaohe && 2205227953@qq.com
 * @LastEditTime: 2024-01-19 15:23:08
 * @FilePath: /umi/src/api/common.ts
 * @Description: 
 * QQ:2205227953,邮箱:2205227953@qq.com
 * Copyright (c) 2024 by GuitarXiaohe, All Rights Reserved. 
 */
import request from "@/utils/request";

// 获取用户信息
export function GetUserInfoAPI() {
  return request({
    url: "/getInfo",
    method: "GET",
  });
}

// 获取路由
export const GetRoutersAPI = () => {
  return request({
      url: '/getRouters',
      method: 'get'
  })
}




// 退出方法
export function LogoutAPI () {
  return request({
    url: '/logout',
    method: 'DELETE'
  })
}